<?php
/**
 * Created by litong on Date: 2018/12/25 0025 上午 9:13
 */
$file=fopen("demo.txt","w");
fputs($file,"i am litong");
while(!feof($file)){
  echo fgets($file)."<br/>";
}
fclose($file);
?>